#include "Thread.h"

namespace Thread{
    __thread pid_t tid = 0;

    void cacheTid(){
        if(tid == 0) tid = static_cast<pid_t>(::syscall(SYS_gettid));
    }
}